home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1472 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  707 b 

  1. Path: medtechnet.com!dreams!tony.johnston
  2. From: Tony.Johnston@dreams.medtechnet.com (Tony Johnston)
  3. Date: 10 Jan 96 23:46:00 
  4. Newsgroups: comp.lang.c++
  5. Subject: File searches
  6. Message-ID: <7a7_9601110100@medtechnet.com>
  7. Organization: Med TechNet
  8.  
  9. I am using Borland C++ 4.0.  I am writing a program for a bbs.  What I want 
  10. to do is take the current users name and compare it against a list of names 
  11. to test for a condition.  For example if the user was:
  12.  
  13. Tony Johnston
  14.  
  15. And I had a file called NAMES.DAT that looked like;
  16.  
  17. Bill Gates
  18. William Clinton
  19. Tony Johnston
  20. Jimmy Hoffa
  21. King Tut
  22.  
  23. How do I do a search through the file to compare it to the name I am 
  24. searching for?
  25.  
  26. Thank you,
  27.    -=[ Tony ]=-
  28.  
  29.